

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
		<g:set var="entityName" value="${message(code: 'privilege.label', default: 'Privilege')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
		<div class="nav">
				<span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
				<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
		</div>
		<div class="body">
				<h1><g:message code="default.list.label" args="[entityName]" /></h1>
				<g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
				</g:if>
				<div class="list">
						<table>
								<thead>
										<tr>

								<g:sortableColumn property="id" title="${message(code: 'privilege.id.label', default: 'Id')}" />

								<g:sortableColumn property="privName" title="${message(code: 'privilege.privName.label', default: 'Priv Name')}" />

								<g:sortableColumn property="description" title="${message(code: 'privilege.description.label', default: 'Description')}" />

								</tr>
								</thead>
								<tbody>
								<g:each in="${privilegeInstanceList}" status="i" var="privilegeInstance">
										<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

												<td><g:link action="show" id="${privilegeInstance.id}">${fieldValue(bean: privilegeInstance, field: "id")}</g:link></td>

										<td>${fieldValue(bean: privilegeInstance, field: "privName")}</td>

										<td>${fieldValue(bean: privilegeInstance, field: "description")}</td>

										</tr>
								</g:each>
								</tbody>
						</table>
				</div>
				<div class="paginateButtons">
						<g:paginate total="${privilegeInstanceTotal}" />
				</div>
		</div>
</body>
</html>
